﻿using DataAccess.Services.Interfaces;
using DataControl;
using NHibernate;

namespace DataAccess.Services.Gateways
{
	internal class RolesGateway : GatewayBase<User_role>, IRolesGateway
	{
		public RolesGateway(ISession session) : base(session)
		{
		}

		public int GetRoleIdByRoleName(string name)
		{
			return DataControl.GetRoleIdByRoleName(name);
		}
	}
}
